<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>公告内容-${web.wtitle}</title>
<meta name="keywords" content="${web.wkeywords}" />
<meta name="description" content="${web.wdescription}" />
<%@ include file="common/head.jsp" %>
<!--[if lt IE 9]>
<script src="js/modernizr.js"></script>
<![endif]-->
</head>
<body>
<!--top begin-->
<jsp:include page="top.jsp"></jsp:include>
<!-- top end -->
<article> 
  <!--lbox begin-->
  <div class="lbox">
    <div class="content_box whitebg">
      <h2 class="htitle"><span class="con_nav">您现在的位置是：<a href="/index.html">首页</a>&nbsp;>&nbsp;<a href="/noticecontent.html?advid=${advice.advid}">网站公告</a></span></h2>
      <h1 class="con_tilte">${advice.advtitle} </h1>
      <p class="bloginfo"><i class="avatar"><img src="/images/avatar.jpg"></i><span>滕一帆</span><span><fmt:formatDate value="${advice.updatetime}" pattern="yyyy-MM-dd  HH:mm:ss"/></span><span>【网站公告】</span></p>
      <p class="con_info"><b>简介</b> ${advice.advdescribe} </p>
      <div class="con_text_2">
      ${advice.advcontent} 

      </div>
 
      <div class="con_text">
             关注滕一帆博客，更多精彩分享，敬请期待！<br />
<br />
&nbsp;<p></p>
<div class="biaoqian"></div>
        <div class="share"><img src="https://www.yangqq.com/skin/jxhx/images/wxgzh.jpg">
<p>扫描关注一帆风顺微信公众号，第一时间获取网站博客更新动态</p>
<p>本文地址：<a href="/noticecontent.html?advid=${advice.advid}" target="_blank">/${advice.advid}.html</a></p></div>



        
        
        <div class="nextinfo">
      <p><a href='/noticecontent.html?advid=${advice.advid-1}'>上一篇</a></p>
      <p><a href='/noticecontent.html?advid=${advice.advid+1}'>下一篇</a></p>
        </div>
        </div>
    </div>
       <jsp:include page="ad15.jsp"></jsp:include>
    <div class="whitebg">
      <h2 class="htitle">相关文章</h2>
    <jsp:include page="otherlink.jsp"></jsp:include>
    </div>

<!--  评论模块-->
    <div class="whitebg gbook">
      <h2 class="htitle">文章评论</h2>
      
    
    </div>
  </div>
  <!--  评论模块-->
  <!--lbox end-->
  <div class="rbox">
       <!-- 点击排行 start -->
 <jsp:include page="clickhit.jsp"></jsp:include>
 <!-- 点击排行 end  -->
<!-- 本站推荐start -->
<jsp:include page="tuijian.jsp"></jsp:include>
<!--本站推荐end  -->
  
    <jsp:include page="ad13.jsp"></jsp:include>
      <!--  cloud 标签云-->
    <jsp:include page="Cloudy.jsp"></jsp:include>
        <!--  -->
 
<jsp:include page="GuessYouLike.jsp"></jsp:include>
    <jsp:include page="ad14.jsp"></jsp:include>
    <jsp:include page="web.jsp"></jsp:include>
  <jsp:include page="dashang.jsp"></jsp:include>
</article>
<!-- footer start -->
<jsp:include page="footer.jsp"></jsp:include>
  <!-- footer end -->

<script type="text/javascript">

function formatDate(date,format){
         var paddNum = function(num){
              num += "";
              return num.replace(/^(\d)$/,"0$1");
            }
        //指定格式字符
        var cfg = {
           yyyy : date.getFullYear() //年 : 4位
          ,yy : date.getFullYear().toString().substring(2)//年 : 2位
          ,M  : date.getMonth() + 1  //月 : 如果1位的时候不补0
          ,MM : paddNum(date.getMonth() + 1) //月 : 如果1位的时候补0
          ,d  : date.getDate()    
          ,dd : paddNum(date.getDate())//日 : 如果1位的时候补0
          ,hh : paddNum(date.getHours())//时:如果1位的时候补0
          ,mm : paddNum(date.getMinutes())//分:如果1位的时候补0  
          ,ss : paddNum(date.getSeconds())//秒:如果1位的时候补0    
        }
        format || (format = "yyyy-MM-dd hh:mm:ss");
        return format.replace(/([a-z])(\1)*/ig,function(m){return cfg[m];});
    }


</script>
</body>
<script type="text/javascript">
function addlikeid(id,likeid) {
	
		//请求的url
		var dataUrl = "/blog/addlikeId";


		
				$.ajax({
					async : true,//设置为异步，如果设置为同步，必须等ajax请求完毕之后，再执行进行下面的操作
					url : dataUrl,       //请求的url
					data : {"id":id,"likeid":likeid},    //要传递的参数
					dataType : "json",//返回的数据格式为json
					cache : false,//不设置缓存
					type : "POST",//提交方式post
					//请求出错调用的方法
					error : function(textStatus, errorThrown) {
						alert("ajax请求失败！");
					},
					//请求之前的方法
					beforeSend : function() {
						//alert("请求前执行的方法！通常放一张加载的图片");
					},
					//请求成功的方法，data为返回的数据
					success : function(data, textStatus) {
						var innerHtml =  data;
						
	
					$("#diggnum").html(innerHtml);
					}
				});
	}


</script>
</html>
